<template>
  <div class="icon">
    <i class="el-icon-error" @click="delIcon(id,index)"></i>
    {{text}}
  </div>
</template>

<script>
  export default {
    name: "IconDel",
    props:['text','id','index','delIcon'],
    methods:{},
  }
</script>

<style lang="scss" scoped>
  .icon{
    display: inline-block;
    width: auto;
    height: 40px;
    line-height: 40px;
    padding: 0 40px;
    box-sizing: border-box;
    border: 1px solid #000000;
    margin: 10px;
    position: relative;
    .el-icon-error{
      position: absolute;
      top: -7px;
      right: -8px;
      background-color: #FFFFFF;
    }
  }
</style>
